package com.wcy.dao;

import com.wcy.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @since 2021-04-30
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleList(@Param("name") String name);
    int addRole(Role role);
    int updateRole(Role role);
    Role getRoleById(int id);
    int delRole(int id);
    int delMenuRole(int id);
    int delUserRole(int id);
}
